package com.wangjiang.mario.admin.system.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wangjiang.mario.admin.common.base.BaseSortParentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 系统菜单表
 *
 * @author wangjiang
 * @Date 2019-08-09 10:23:45
 */
@Data
@TableName(value = "mario_system_menu")
@ApiModel(value = "系统菜单表")
public class SystemMenuEntity extends BaseSortParentEntity {

//    `menu_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '菜单名称',
//    `menu_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '菜单编码',
//    `menu_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '菜单类型（1菜单 2权限 3开发）',
//    `menu_href` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '链接',
//    `menu_target` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '目标',
//    `menu_icon` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图标',
//    `menu_color` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '颜色',
//    `menu_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '菜单标题',
//    `permission` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '权限标识',
//    --   `weight` decimal(4, 0) NULL DEFAULT NULL COMMENT '菜单权重',
//    `is_show` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '是否显示（1显示 0隐藏）',

    @TableField(value = "menu_name")
    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @TableField(value = "menu_type")
    @ApiModelProperty(value = "菜单类型（1菜单 2权限 3开发）")
    private String menuType;

    @TableField(value = "menu_href")
    @ApiModelProperty(value = "链接")
    private String menuHref;

    @TableField(value = "menu_target")
    @ApiModelProperty(value = "目标")
    private String menuTarget;

    @TableField(value = "menu_icon")
    @ApiModelProperty(value = "图标")
    private String menuIcon;

    @TableField(value = "menu_color")
    @ApiModelProperty(value = "颜色")
    private String menuColor;

    @TableField(value = "menu_title")
    @ApiModelProperty(value = "菜单标题")
    private String menuTitle;

    @TableField(value = "permission")
    @ApiModelProperty(value = "权限标识 如: sys:menu:edit")
    private String permission;

    @TableField(value = "is_show")
    @ApiModelProperty(value = "是否显示（1显示 0隐藏）")
    private String isShow;
}
